package org.stwy.price;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.rap.common.persistence.IBaseDAO;
import com.rap.common.exception.ServiceException;
import com.rap.common.service.BaseServiceImpl;

/**
 * 指导价 服务类
 */
/**
*版权信息 (c) RAP 保留所有权利.
*@author Rap.Codegen
*@Team RAP Team
*@Date 2015-4-4 12:26:43
*<p></p>
*
*@参与人：Rap.Codegen
*/
 
@Service
@Transactional(rollbackFor=Exception.class)
public class PriceService extends BaseServiceImpl<PriceEntity, String> {

	@Autowired
	private PriceDAO dao;

	@Override
	protected IBaseDAO getDAO() {
		return dao;
	}
	
	/**
	 * 自定义service方法，注意抛出异常
	 * @throws ServiceException
	 */
	/*
	public void methdA() throws ServiceException {
		try {
			//Do some things
		} catch (Exception e) {
			throw new ServiceException(e.getMessage());
		}
	}
	*/
}
